package com.wanwu.channel.biz;

import com.wanwu.channel.biz.channel.PayParameterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class PayService {

    @Autowired
    private PayParameterFactory payParameterFactory;

    public Map<String, Object> getPayParameter(String tradeNo, String payChannel) throws Exception {
        PayParameterService service = payParameterFactory.getService(payChannel);
        return service.getPayParameter(tradeNo);
    }
}
